package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksUserRead;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksUserReadMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksUserReadService {

	@Autowired
    private BooksUserReadMapper booksUserReadMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksUserReadMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksUserRead record){
        return booksUserReadMapper.insert(record);
    }

    public int insertSelective(BooksUserRead record){
        return booksUserReadMapper.insertSelective(record);
    }

    public BooksUserRead selectByPrimaryKey(Integer id){
        return booksUserReadMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BooksUserRead record){
        return booksUserReadMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksUserRead record){
        return booksUserReadMapper.updateByPrimaryKey(record);
    }

    public List<BooksUserRead> selectByCondition(BooksUserRead record){
        return booksUserReadMapper.selectByCondition(record);
    }

    public List<BooksUserRead> selectAll(){
        return booksUserReadMapper.selectAll();
    }

    public List<BooksUserRead> selectByPage(Page<BooksUserRead> page){
        return booksUserReadMapper.selectByPage(page);
    }

    public Integer count(BooksUserRead record){
        return booksUserReadMapper.count(record);
    }

    public int deleteByCondition(BooksUserRead record){
        return booksUserReadMapper.deleteByCondition(record);
    }

}
